{strip}
<!DOCTYPE HTML>
<html lang="hu">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
	
	<title>{$page_title}</title>
	
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	
	{include file="inc_css.tpl"}
</head>
<body>
	<h1><a href="/adm">Mit nézel?</a></h1>
	<ul id="TOC"></ul>
	<div class="box">
		<h2>Sorozat szerkesztése</h2>
		<form action="/adm/editseria/{$smarty.request.value2}" method="post">
			<input type="hidden" name="form-name" value="editseria" />
			<input type="hidden" name="editseria[id]" value="{$seria.id}" />
			<table>
				<tr>
					<th>Név</th>
					<td><input type="text" name="editseria[seriesname]" value="{$seria.seriesname}" /></td>
				</tr>
				<tr>
					<th>Összegzés</th>
					<td><textarea name="editseria[overview]" cols="60" rows="10">{$seria.overview}</textarea></td>
				</tr>
				<tr>
					<th>Először vetítve</th>
					<td>
						<input type="text" name="editseria[firstaired]" value="{$seria.firstaired}" />
					</td>
				</tr>
				<tr>
					<th>Szereplők</th>
					<td>
						<input type="text" name="editseria[actors]" value="{$seria.actors}" size="79" />
					</td>
				</tr>
				<tr>
					<th>Vetítés napja</th>
					<td>
						<input type="text" name="editseria[airs_dayofweek]" value="{$seria.airs_dayofweek}" />
					</td>
				</tr>
				<tr>
					<th>Vetítés ideje</th>
					<td>
						<input type="text" name="editseria[airs_time]" value="{$seria.airs_time}" />
					</td>
				</tr>
				<tr>
					<th>Műfaj</th>
					<td>
						<input type="text" name="editseria[genre]" value="{$seria.genre}" size="79" />						
					</td>
				</tr>
				<tr>
					<th>Csatorna</th>
					<td>
						<input type="text" name="editseria[network]" value="{$seria.network}" />
					</td>
				</tr>
				<tr>
					<th>Játékidő</th>
					<td>
						<input type="text" name="editseria[runtime]" value="{$seria.runtime}" size="4" maxlength="3" />
					</td>
				</tr>
				<tr>
					<th>Állapot</th>
					<td>
						<input type="text" name="editseria[status]" value="{$seria.status}" />
					</td>
				</tr>
			</table>
			<p>
				<input type="submit" value="Változások mentése" />
			</p>
		</form>
		<p>&nbsp;</p>
		<h2>Epizódok</h2>
		<form method="post" action="/adm/editseria/{$seria.id}">
			<input type="hidden" name="form-name" value="batchepisodes" />
			<table class="checkableTable eptable">
				<thead>
					<tr>
						<th>Cím</th>
						<th>Vetítés</th>
						<th>Évad</th>
						<th>Rész</th>
						<th>Frissítve</th>
					</tr>
				</thead>
				<tbody>
					{section loop=$episodes name='e'}					
					{if $seid != $episodes[e].seasonnumber and $seid}
					<tr class="sepa">
						<th>Cím</th>
						<th>Vetítés</th>
						<th>Évad</th>
						<th>Rész</th>
						<th>Frissítve</th>
					</tr>
					{/if}
					<tr>
						<th>
							<input type="checkbox" name="batchepisodes[id][]" value="{$episodes[e].id}" />
							{$episodes[e].episodename}
						</th>
						<td>{$episodes[e].firstaired|date_format:'%Y.%m.%d'}</td>
						<td>{$episodes[e].seasonnumber}</td>
						<td>{$episodes[e].episodenumber}</td>
						<td>{$episodes[e].last_updated|date_format:'%Y.%m.%d'}</td>
					</tr>
					{assign var='seid' value=$episodes[e].seasonnumber}
					{sectionelse}
					<tr>
						<th colspan="4">Nincsenek epizódok.</th>
					</tr>
					{/section}
				</tbody>
			</table>
			<select name="batchepisodes[operation]">
				<option value="null">&raquo;&nbsp;Csoportos művelet&nbsp;&laquo;</option>
				<option value="del">Töröl</option>
			</select>
			<input type="submit" value="Végrehajt" />
		</form>
	</div>	
	{include file="inc_js.tpl"}
</body>
</html>
{/strip}